home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cocktail
/
cg.lha
/
cg
/
src
/
cg.awk2
< prev
next >
Wrap
Text File
|
1992-11-24
|
664b
|
17 lines
BEGIN { n = 50; }
/\?.*\?/ { if ($3 == "W") proc = "Warning";
else if ($3 == "I") proc = "Information";
else proc = "Error";
if ($4 == "?") print "Tree." proc " (" $2 ", t^." sel ".Pos);";
else print "Tree." proc "I (" $2 ", t^." sel ".Pos, Errors." $4 ", ADR (" $5 "));";
if (m [$2] == "") {
m [$2] = 1;
print $2 " =", n ++ " ;" > "/tmp/cg/consts2";
print "|", $2, " : WriteS (StdError, \"" $2 "\");" > "/tmp/cg/writes02";
};
next; }
/[A-Za-z][A-Za-z0-9]*. [A-Za-z][A-Za-z0-9]* :$/ { sel = $3; print; next; }
/[A-Za-z][A-Za-z0-9]* :$/ { sel = $1; print; next; }
/ :-/ { sel = $1; print; next; }
{ print; next; }